<div class="artCon" style="width:500px;">
	<#if type?? && type=="cube">
	<form class="form-horizontal" id="mainForm" action="/${orgi}/dm/cube/${cube.id!''}/authrolesdo.html" data-toggle="form" method="post">
	<#else>
	<form class="form-horizontal" id="mainForm" action="/${orgi}/dm/cube/${cube.id!''}/measure/${measure.id!''}/authrolesdo.html" data-toggle="ajax-form" data-target="#auth" method="post">
	</#if>
    <div class="artMain">  
        <div class="artTabCon" style="padding:2px;width:490px;">
        	<p>指定 <#if type?? && type = "cube"><b>“${cube.name!''}”</b> 模型 <#elseif type?? && type = "measure" && measure??>“<img src="/assets/images/ruler_triangle1.png"/><b>${measure.name!''}</b>” 指标 </#if> 的访问权限。默认情况下，模型允许所有人访问，设定权限后，根据设定的权限访问规则访问。</p>
			<div class="check_top" style="margin-top:0px;">
				
			</div>
			<div class="check_bottom">
				<div style="width: 100%;height:280px;">
				<div class="tableScrollWrap" style="width:100%;">
				<div class="check_box_con" style="width:100%;margin-left:0px;">
					<table width="100%" cellspacing="0" cellpadding="0">
						<tr>
							<th width="19"><span>&nbsp;</span></th>
							<th style="text-align:left;">角色</th>
							<th style="text-align:left;width:50px;">允许</th>
							<th style="text-align:left;width:50px;">禁止</th>
						</tr>
						<#if roles??>
						<#list roles as role>
							<tr>
								<td  style="padding:2px;" align="center"><img src="/assets/images/ctr-icons-7.png" width="14" height="14"></td>
								<td style="padding:2px;">${role.name!''}</td>
								<td style="padding:2px;"><span><input type="radio" id="${role.id}_a" name="${role.id!''}" value="1"/> </span></td>
								<td style="padding:2px;"><span><input type="radio" id="${role.id}_b" name="${role.id!''}" value="0" /></span></td>
							</tr>
						</#list>
						</#if>
					</table>
				</div>
				</div>
				</div>
			</div> 
        </div>
    </div>
	<div class="bottomBg">
		<div class="btnWrap">
			<input type="submit" class="subButtonStyle" value="确认"/>
			<input type="button" onclick="closeR3ArtDialog()" class="cancelButtonStyle" value="取消"/>
		</div>
	</div>
	</form>
</div>
